{include file="header.html"}
<script type="text/javascript">
    //<!CDATA[
    $(function(){
        $('#share_form').validate({
            errorPlacement: function(error, element){
                $(element).next('.field_notice').hide();
                $(element).after(error);
            },
            success       : function(label){
                label.addClass('right').text('OK!');
            },
            rules : {
            	cate_name : {
                    required : true,
                    maxlength: 100
                },                
                sort_order : {
                    number   : true
                }
            },
            messages : {
            	cate_name : {
                    required : '名称不能为空',                   
                },            
                sort_order  : {
                    number   : '只能是数字'
                }
            }
        });
    });
    //]]>
</script>
<div id="rightTop">
    <p>视频分类</p>
    <ul class="subnav">
        <li><a class="btn1" href="index.php?app=vcategory">{$lang.manage}</a></li>
        {if $vcategory.cate_id}
        <li><a class="btn1" href="index.php?app=vcategory&amp;act=add">{$lang.add}</a></li>
        {else}
        <li><span>{$lang.add}</span></li>
        {/if}
    </ul>
</div>

<div class="info">
    <form method="post" enctype="multipart/form-data" id="share_form">
        <table class="infoTable">            
            <tr>
                <th class="paddingT15">
                    {$lang.key}:</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="infoTableInput2" id="cate_name" type="text" name="cate_name" value="{$vcategory.cate_name|escape}" />
                </td>
            </tr>
           
            <tr>
                <th class="paddingT15">
                    <label for="type">是否导航:</label></th>
                <td class="paddingT15 wordSpacing5">
                  <input name="isnav" type="checkbox" id="isnav" value="1" {if $vcategory.isnav}checked{/if} />
                </td>
            </tr>
            <tr>
                <th class="paddingT15">
                    {$lang.sort_order}:</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="sort_order" id="sort_order" type="text" name="sort_order" value="{$vcategory.sort_order}" />
                    <label class="field_notice">{$lang.number_only}</label>
                </td>
            </tr>
            <tr>
                <th></th>
                <td class="ptb20">
                    <input class="formbtn" type="submit" name="Submit" value="{$lang.submit}" />
                    <input class="formbtn" type="reset" name="Submit2" value="{$lang.reset}" />
                </td>
            </tr>
        </table>
    </form>
</div>
{include file="footer.html"}
